//@ts-ignore//@ts-ignore
// import { getappvm } from "./appvm.ts"; //@ts-ignore
import { resolvemdpathfromurl } from "./resolvemdpathfromurl";
//import { disabledalinkhref } from "./disabledalinkhref.ts";
import { states } from "./states";
//@ts-ignore

export function findindexexmenulist() {
    // const appvm = getappvm();
    // console.log(menulist);

    var currentpageurl = resolvemdpathfromurl();
    // console.log(currentpageurl);
    const { menulist } = states;
    var currentpageindex = menulist.findIndex(
        (a: string) => a === currentpageurl
    );
    // console.log(currentpageindex);
    return currentpageindex;
}
